package com.meet.persist.dao;

import com.meet.persist.entity.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityDao {
    List<Activity> findActivities(@Param("page") int page,
                                  @Param("limit") int limit,
                                  @Param("location") String location,
                                  @Param("category") String category,
                                  @Param("timeFilter") String timeFilter,
                                  @Param("keyword") String keyword);

    int countActivities(@Param("location") String location,
                        @Param("category") String category,
                        @Param("timeFilter") String timeFilter,
                        @Param("keyword") String keyword);

    Activity findById(String activityId);

    boolean insert(Activity activity);

    boolean update(Activity activity);

    boolean delete(String activityId);
}
